package com.tuozixuan.api;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.alibaba.nacos.api.exception.NacosException;
import com.alibaba.nacos.api.naming.pojo.Instance;

@RequestMapping("/demo")
public interface DemoApi {
    
	@GetMapping("/hello")
    String hello(@RequestParam(value="msg", required = false)String msg, HttpServletRequest request);
    
    @GetMapping(value = "/get")
    public boolean get();
    
    @GetMapping(value = "/getInstance")
    public List<Instance> getInstance(@RequestParam String serviceName) throws NacosException;
    
}
